<!DOCTYPE html>
<?php
require 'common/sessioncheck.php';
?>
<?php
 require 'common/mysqlCommon.php';  //将其他的php文件的代码引入当前页面
?>
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        <?php
        if(isset($_GET["id"])){
            $id=(int)$_GET["id"];
            if($id){
                $sqlstring="delete from user_infos where uid=$id";
                $result= getResultBySQL($sqlstring);
                    if($result){
                        echo "<script>alert('删除成功！');"
                        . "location='mysql001.php';</script>";
                    }else{
                        echo "删除数据失败！";
                    }
            }
        }else{
            echo "参数错误!";
        }
        ?>
    </body>
</html>
